appServices
.factory('findModule', function (HostConfig,$q, $http, md5, HostConfig, Common,Logger,ionPlugins,ionNative) {
    var api = HostConfig.getAPI();
    return {
        //获取活动列表；
       get_active_list: function ( Params ) {
            var url = "getActivitiesList";
            // var url = "http://10.0.0.4:8081/mall/am/interfaceController/getActivitiesList";
            var deferred = $q.defer();
            $http({
                method: 'POST',
                url: api+"/"+url ,
                params: Params,
                headers: {
                    'Content-Type': 'application/json',
                    'appKey': "958ce0a62c344546a9111cbbfbf15c01"
                },
                skipAuthorization: true
            }).success(function (success) {
                deferred.resolve(success);
            }).error(function (error) {
                deferred.reject(error);
            });
            return deferred.promise;
        },
        //获取楼层列表；
        get_floor: function (url){
            var url = url
            var deferred = $q.defer();
            $http({
                method: 'POST',
                url:  api+"/"+url,
                params: {
                },
                headers: {
                    'Content-Type': 'application/json',
                    'appKey': "958ce0a62c344546a9111cbbfbf15c01"
                },
                skipAuthorization: true
            }).success(function (success) {
                deferred.resolve(success);
            }).error(function (error) {
                deferred.reject(error);
            });
            return deferred.promise;
        },
   
        //获取品牌列表；
        get_brand_list: function (url, params) {
            var url = url
            var deferred = $q.defer();
            $http({
                method: 'POST',
                url:  api+"/"+url,
                params:params,
                headers: {
                    'Content-Type': 'application/json',
                    'appKey': "958ce0a62c344546a9111cbbfbf15c01"
                },
                skipAuthorization: true
            }).success(function (success) {
                deferred.resolve(success);
            }).error(function (error) {
                deferred.reject(error);
            });
            return deferred.promise;
        },
        //获取品牌（店铺详情）
        get_brand_detail:function(){
            
        }
    }
});
